package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevCollection;
import cn.sciento.farm.devicemanager.dao.entity.DevController;
import cn.sciento.farm.devicemanager.gateway.model.uplink.ControlData;

import java.util.Date;
import java.util.List;

public interface ControllerService {
    int updateOnline(String eui, String node, String circuit, int up);

    DevController getByArg(String eui, String node, String circuit);

    int insert(DevController deviceSwitch);

    int updateStatus(ControlData switchStatus);

    int updateById(DevController devController);

    int deleteById(long id);

    List<DevController> getByEui(String eui);

    DevController getById(long id);

    List<DevController> getSameNode(long id);

    List<DevController> getByLandId(int landId);

    int deleteByEui(String id);

    void changeOnline(DevController devController);

    List<DevController> getListByLimit(long pageNo, int pageSize);

    int getCount();

}
